package com.example.s17_springsecurity_db.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName(value = "menu")
public class Menu {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String pattern;

    @TableField(exist = false)
    private List<Role> roles;
}

